package Practice.ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season s = Season.SPRING;
        Season[] season = Season.values();
        for (int i = 0; i < season.length; i++) {
            System.out.println(season[i]);
            System.out.println(season[i].getSeasonName());
            System.out.println(season[i].getSeasonDisc());
        }
        Season season1 = Season.SPRING;
        switch (season1) {
            case SPRING:
                System.out.println(season1.getSeasonName() + "很" + season1.getSeasonDisc());
                break;
            case SUMMER:
                System.out.println(season1.getSeasonName() + "很" + season1.getSeasonDisc());
                break;
            case AUTUMN:
                System.out.println(season1.getSeasonName() + "很" + season1.getSeasonDisc());
                break;
            case WINTER:
                System.out.println(season1.getSeasonName() + "很" + season1.getSeasonDisc());
                break;
        }

    }


}
